package com.molyfun.parents.rest.bean;

import android.text.TextUtils;

import com.molyfun.parents.rest.BaseResponse;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/21/16.
 */
public class UserResponse extends BaseResponse{

    private User data;

    public User getData() {
        return data;
    }

    public void setData(User data) {
        this.data = data;
    }

    public static class User {


        /**
         * id : 4335e73aed5041cea5c79469c3093726
         * createdatetime : 1476945676000
         * email :
         * imgurl : helloimg/houser/20161017/201610171128095TiEhkf3.jpg
         * phone : 13555555555
         * sex : 0
         * status : 1
         * token : U+SyOlBsHC3MzZn7dffBwq==
         * username : lisi11
         * usertype : 1
         * password :
         * cardid :
         * openid :
         * isvirtual : 0
         * studentid : 8a2d9263570d9ee60157227b7646011a
         */

        private String id;
        private long createdatetime;
        private String email;
        private String address;
        private String imgurl;
        private String phone;
        private String sex;
        private String status;
        private String token;
        private String username;
        private String usertype;
        private String password;
        private String openid;
        private String isvirtual;
        private String cardid;
        private String studentid;
        private String studentname;
        private String studentremarkname;
        private String studentsex;
        private long studentbirthdatetime;
        private String lastestorderproductname;
        private int messageunreadcount;
        private List<DepartBean> departlist;
        private List<ThirdList> thirdlist;
        private int integral;
        private String txuserid;//腾讯im
        private String txusersign;
        private String watermarkurl;

        public String getTxuserid() {
            return txuserid;
        }

        public void setTxuserid(String txuserid) {
            this.txuserid = txuserid;
        }

        public String getTxusersign() {
            return txusersign;
        }

        public void setTxusersign(String txusersign) {
            this.txusersign = txusersign;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public long getCreatedatetime() {
            return createdatetime;
        }

        public void setCreatedatetime(long createdatetime) {
            this.createdatetime = createdatetime;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getImgurl() {
            return imgurl;
        }

        public void setImgurl(String imgurl) {
            this.imgurl = imgurl;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getUsertype() {
            return usertype;
        }

        public void setUsertype(String usertype) {
            this.usertype = usertype;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public String getIsvirtual() {
            return isvirtual;
        }

        public void setIsvirtual(String isvirtual) {
            this.isvirtual = isvirtual;
        }

        public String getStudentid() {
            return studentid;
        }

        public String getCardid() {
            return cardid;
        }

        public void setCardid(String cardid) {
            this.cardid = cardid;
        }

        public void setStudentid(String studentid) {
            this.studentid = studentid;
        }

        public String getStudentname() {
            if(TextUtils.isEmpty(studentname)){
                return "无";
            }
            return studentname;
        }

        public void setStudentname(String studentname) {
            this.studentname = studentname;
        }

        public String getStudentsex() {
            return studentsex;
        }

        public void setStudentsex(String studentsex) {
            this.studentsex = studentsex;
        }

        public long getStudentbirthdatetime() {
            return studentbirthdatetime;
        }

        public void setStudentbirthdatetime(long studentbirthdatetime) {
            this.studentbirthdatetime = studentbirthdatetime;
        }

        public int getMessageunreadcount() {
            return messageunreadcount;
        }

        public void setMessageunreadcount(int messageunreadcount) {
            this.messageunreadcount = messageunreadcount;
        }

        public String getLastestorderproductname() {
            if(TextUtils.isEmpty(lastestorderproductname)){
                return "无";
            }else{
                if(lastestorderproductname.equals("null")){
                    return "无";
                }
            }
            return lastestorderproductname;
        }

        public void setLastestorderproductname(String lastestorderproductname) {
            this.lastestorderproductname = lastestorderproductname;
        }

        public List<DepartBean> getDepartlist() {
            return departlist;
        }

        public void setDepartlist(List<DepartBean> departlist) {
            this.departlist = departlist;
        }

        public int getIntegral() {
            return integral;
        }

        public void setIntegral(int integral) {
            this.integral = integral;
        }

        public String getStudentremarkname() {
            return studentremarkname;
        }

        public void setStudentremarkname(String studentremarkname) {
            this.studentremarkname = studentremarkname;
        }

        public String getImpassword() {
            return txusersign;
        }

        public void setImpassword(String impassword) {
            this.txusersign = impassword;
        }

        public String getImusername() {
            return txuserid;
        }

        public void setImusername(String imusername) {
            this.txuserid = imusername;
        }

        public List<ThirdList> getThirdlist() {
            return thirdlist;
        }

        public void setThirdlist(List<ThirdList> thirdlist) {
            this.thirdlist = thirdlist;
        }

        public String getWatermarkurl() {
            return watermarkurl;
        }

        public void setWatermarkurl(String watermarkurl) {
            this.watermarkurl = watermarkurl;
        }
    }

    public static class ThirdList{

        private String status;
        private int usertype;
        private String username;
        private String openid;

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public int getUsertype() {
            return usertype;
        }

        public void setUsertype(int usertype) {
            this.usertype = usertype;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }
    }

    public static class DepartBean{

        /**
         * orgcode : A0004122     机构代码
         * departname : 测试机构    机构名称
         * departtel : 1234567890   机构电话
         */

        private String id;
        private String studentid;
        private String orgcode;
        private String departname;
        private String departtel;
        private String studentremakname;
        private boolean selected;
        private String status;

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getStudentid() {
            return studentid;
        }

        public void setStudentid(String studentid) {
            this.studentid = studentid;
        }

        public String getOrgcode() {
            return orgcode;
        }

        public void setOrgcode(String orgcode) {
            this.orgcode = orgcode;
        }

        public String getDepartname() {
            return departname;
        }

        public void setDepartname(String departname) {
            this.departname = departname;
        }

        public String getDeparttel() {
            return departtel;
        }

        public void setDeparttel(String departtel) {
            this.departtel = departtel;
        }

        public String getStudentremakname() {
            return studentremakname;
        }

        public void setStudentremakname(String studentremakname) {
            this.studentremakname = studentremakname;
        }

        public boolean isSelected() {
            return selected;
        }

        public void setSelected(boolean selected) {
            this.selected = selected;
        }
    }

}